#预先安装：

sudo apt install -y python3-pyqt5 qttools5-dev-tools pyqt5-dev-tools zlib1g zlib1g-dev libffi-dev openssl libssl-dev libbz2-dev libc6-dev libgdbm-dev tk-dev libsqlite3-dev libncursesw5-dev libreadline-gplv2-dev liblzma-dev gcc make libxcb-xinarama0

root_dir=`pwd`

#编译python源代码 
cd ./Python-3.8.5
./configure --prefix=$root_dir/python --with-ssl
make && make install

# # 安装相关包
#echo "installing packages..."
#cd $root_dir

#./python/bin/pip3 install -r $root_dir/program/requirements_linux.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

